IAxis.Home 方法
命令轴执行 "寻找原点" 序列。侦测到索引讯号时,可使用 Position 输入来设定绝对位置,若此方法在静止 (Standstill) 时开始,则会在静止 (Standstill) 时完成。
命名空间:IntervalZero.KINGSTAR.Base.Class组合: IntervalZero.KINGSTAR.Base.Class (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
语法
IHomeCommand Home(
double position,
double velocity,
double endVelocity,
double acceleration,
double deceleration,
double jerk,
McDirection direction,
McHomingMode homingMode
)
Function Home(
position As Double,
velocity As Double,
endVelocity As Double,
acceleration As Double,
deceleration As Double,
jerk As Double,
direction As McDirection,
homingMode As McHomingMode
)As IHomeCommand
参数
position
型别:double
侦测到索引讯号时设定绝对位置。[单位]
velocity
型别:double
原点复归移动的起始速度。
endVelocity
型别:double
原点复归移动的结束速度。使用方式依原点复归模式而定。
acceleration
型别:double
加速度值。
deceleration
型别:double
减速度值。
jerk
型别:double
加加速度值。
direction
型别:McDirection
轴移动回原点的方向,使用 McDirection 中的 0、2 或 3 类型。
homingMode
型别:McHomingMode
选择一个原点复归模式。
回传值
型别:IHomeCommand
回传一个原点复归的属性。
备注
- 使用增量编码器时,马达启动时的马达位置是未知的,须搜寻已知的参考位置才能得知马达的位置,此即称为原点复归。
- 在
homingSlave
模式下,需先使用 SlaveHomeOffset 与 SlaveHomingMode 属性来设定mcSlaveHomingMode
与mcSlaveHomeOffset
。
参见